﻿using System;
using System.Runtime.InteropServices;

namespace BeholdTV
{
    internal static class Win32
    {
        private const string Kernel32 = "kernel32.dll";

        [DllImport(Kernel32, SetLastError = true)]
        public static extern IntPtr LoadLibrary(string lpFileName);

        [DllImport(Kernel32, SetLastError = true)]
        public static extern bool FreeLibrary(IntPtr hModule);

        [DllImport(Kernel32, CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
        public static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
    }
}
